package com.zc.designmodel.behavioral.command;

/**
 * @author: zhuCan
 * @date: 2020/4/14 14:09
 * @description:
 */
public class BuyStock implements Command {

  private Stock stock;

  public BuyStock(Stock stock){
    this.stock=stock;
  }

  @Override
  public void execute() {
    stock.buy();
  }
}
